package com.lhd.mapper;

import com.github.pagehelper.Page;
import com.lhd.pojo.PageCondition;
import com.lhd.pojo.Site;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SiteMapper {
    List<Site> getAll();

    Page<Site> getWithCondition(@Param("name") String name,
                                @Param("capacity") Integer capacity,
                                @Param("curCapacity") Integer curCapacity,
                                @Param("address") String address,
                                @Param("phone") String phone
                                );

    void updateSite(Site site);

    void remove(Integer id);

    void add(Site site);
}
